package com.yjzx.util.service.aop.ref.method;

import java.lang.annotation.*;

/**
 * @author yjzx
 * @date 2024/8/7
 * @description RefModification
 */
@Target({ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RefModification {
    boolean enable() default true;
    boolean enableMap() default true;
    boolean enableCollection() default true;
    /**
     * 开启缓存不可变对象
     * @return
     */
    RefUnmodifiableObject enableObject() default @RefUnmodifiableObject();
}
